package com.vhans.db.model.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 好友请求DTO
 *
 * @author vhans
 * @date 2023-05-21
 */
@Data
@Builder
@ApiModel(description = "好友请求DTO")
public class RequestDTO {

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 请求类型(1好友 2群聊)
     */
    @ApiModelProperty(value = "请求类型(1好友 2群聊)")
    private Integer type;

    /**
     * 请求用户id
     */
    @NotNull(message = "请求用户不能为空")
    @ApiModelProperty(value = "请求用户id")
    private Integer fromUid;

    /**
     * 目标用户id
     */
    @ApiModelProperty(value = "目标用户id")
    private Integer toUid;

    /**
     * 房间号(发出ID_接收ID)
     */
    @ApiModelProperty(value = "房间号(发出ID_接收ID)")
    private String roomId;

    /**
     * 请求理由
     */
    @ApiModelProperty(value = "请求理由")
    private String remark;

    /**
     * 群id
     */
    @ApiModelProperty(value = "群id")
    private Integer groupId;

}
